home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C++ für Kids
/
C++ for kids.iso
/
SETUP
/
US
/
CBUILDER
/
DATA.Z
/
EXTCTRLS.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-13
|
20KB
|
603 lines
//----------------------------------------------------------------------------
// ExtCtrls.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
// From: ExtCtrls.pas
//----------------------------------------------------------------------------
#ifndef ExtCtrlsHPP
#define ExtCtrlsHPP
//----------------------------------------------------------------------------
#include <StdCtrls.hpp>
#include <Graphics.hpp>
#include <Menus.hpp>
#include <Forms.hpp>
#include <Controls.hpp>
#include <Classes.hpp>
#include <SysUtils.hpp>
#include <Windows.hpp>
#include <Messages.hpp>
#include <System.hpp>
#pragma warn -par
#pragma warn -hid
#pragma warn -inl
namespace Extctrls
{
//-- type declarations -------------------------------------------------------
enum TShapeType { stRectangle, stSquare, stRoundRect, stRoundSquare, stEllipse, stCircle };
class __declspec(delphiclass) TShape;
class __declspec(pascalimplementation) TShape : public Controls::TGraphicControl
{
typedef Controls::TGraphicControl inherited;
private:
TShapeType FShape;
Byte FReserved;
Graphics::TPen* FPen;
Graphics::TBrush* FBrush;
void __fastcall SetBrush(Graphics::TBrush* Value);
void __fastcall SetPen(Graphics::TPen* Value);
void __fastcall SetShape(TShapeType Value);
protected:
virtual void __fastcall Paint(void);
public:
__fastcall virtual TShape(Classes::TComponent* AOwner);
__fastcall virtual ~TShape(void);
__published:
void __fastcall StyleChanged(System::TObject* Sender);
__property Graphics::TBrush* Brush = {read=FBrush, write=SetBrush, nodefault};
__property DragCursor ;
__property DragMode ;
__property Enabled ;
__property ParentShowHint ;
__property Graphics::TPen* Pen = {read=FPen, write=SetPen, nodefault};
__property TShapeType Shape = {read=FShape, write=SetShape, default=0};
__property ShowHint ;
__property Visible ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDrag ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnStartDrag ;
};
class __declspec(delphiclass) TPaintBox;
class __declspec(pascalimplementation) TPaintBox : public Controls::TGraphicControl
{
typedef Controls::TGraphicControl inherited;
private:
Classes::TNotifyEvent FOnPaint;
protected:
virtual void __fastcall Paint(void);
public:
__fastcall virtual TPaintBox(Classes::TComponent* AOwner);
__property Canvas ;
__published:
__property Align ;
__property Color ;
__property DragCursor ;
__property DragMode ;
__property Enabled ;
__property Font ;
__property ParentColor ;
__property ParentFont ;
__property ParentShowHint ;
__property PopupMenu ;
__property ShowHint ;
__property Visible ;
__property OnClick ;
__property OnDblClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDrag ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property Classes::TNotifyEvent OnPaint = {read=FOnPaint, write=FOnPaint};
__property OnStartDrag ;
public:
/* TGraphicControl.Destroy */ __fastcall virtual ~TPaintBox(void) { }
};
class __declspec(delphiclass) TImage;
class __declspec(pascalimplementation) TImage : public Controls::TGraphicControl
{
typedef Controls::TGraphicControl inherited;
private:
Graphics::TPicture* FPicture;
bool FAutoSize;
bool FStretch;
bool FCenter;
Byte FReserved;
Graphics::TCanvas* __fastcall GetCanvas(void);
void __fastcall PictureChanged(System::TObject* Sender);
void __fastcall SetAutoSize(bool Value);
void __fastcall SetCenter(bool Value);
void __fastcall SetPicture(Graphics::TPicture* Value);
void __fastcall SetStretch(bool Value);
protected:
virtual HPALETTE __fastcall GetPalette(void);
virtual void __fastcall Paint(void);
public:
__fastcall virtual TImage(Classes::TComponent* AOwner);
__fastcall virtual ~TImage(void);
__property Graphics::TCanvas* Canvas = {read=GetCanvas, nodefault};
__published:
__property Align ;
__property bool AutoSize = {read=FAutoSize, write=SetAutoSize, default=0};
__property bool Center = {read=FCenter, write=SetCenter, default=0};
__property DragCursor ;
__property DragMode ;
__property Enabled ;
__property ParentShowHint ;
__property Graphics::TPicture* Picture = {read=FPicture, write=SetPicture, nodefault};
__property PopupMenu ;
__property ShowHint ;
__property bool Stretch = {read=FStretch, write=SetStretch, default=0};
__property Visible ;
__property OnClick ;
__property OnDblClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDrag ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnStartDrag ;
};
enum TBevelStyle { bsLowered, bsRaised };
enum TBevelShape { bsBox, bsFrame, bsTopLine, bsBottomLine, bsLeftLine, bsRightLine };
class __declspec(delphiclass) TBevel;
class __declspec(pascalimplementation) TBevel : public Controls::TGraphicControl
{
typedef Controls::TGraphicControl inherited;
private:
TBevelStyle FStyle;
TBevelShape FShape;
void __fastcall SetStyle(TBevelStyle Value);
void __fastcall SetShape(TBevelShape Value);
protected:
virtual void __fastcall Paint(void);
public:
__fastcall virtual TBevel(Classes::TComponent* AOwner);
__published:
__property Align ;
__property ParentShowHint ;
__property TBevelShape Shape = {read=FShape, write=SetShape, default=0};
__property ShowHint ;
__property TBevelStyle Style = {read=FStyle, write=SetStyle, default=0};
__property Visible ;
public:
/* TGraphicControl.Destroy */ __fastcall virtual ~TBevel(void) { }
};
class __declspec(delphiclass) TTimer;
class __declspec(pascalimplementation) TTimer : public Classes::TComponent
{
typedef Classes::TComponent inherited;
private:
bool FEnabled;
Byte FReserved;
Cardinal FInterval;
HWND FWindowHandle;
Classes::TNotifyEvent FOnTimer;
void __fastcall UpdateTimer(void);
void __fastcall SetEnabled(bool Value);
void __fastcall SetInterval(Cardinal Value);
void __fastcall SetOnTimer(Classes::TNotifyEvent Value);
void __fastcall WndProc(Messages::TMessage &Msg);
protected:
virtual void __fastcall Timer(void);
public:
__fastcall virtual TTimer(Classes::TComponent* AOwner);
__fastcall virtual ~TTimer(void);
__published:
__property bool Enabled = {read=FEnabled, write=SetEnabled, default=1};
__property Cardinal Interval = {read=FInterval, write=SetInterval, default=1000};
__property Classes::TNotifyEvent OnTimer = {read=FOnTimer, write=SetOnTimer};
};
enum TPanelBevel { bvNone, bvLowered, bvRaised };
typedef int TBevelWidth;
typedef int TBorderWidth;
class __declspec(delphiclass) TCustomPanel;
class __declspec(pascalimplementation) TCustomPanel : public Controls::TCustomControl
{
typedef Controls::TCustomControl inherited;
private:
TPanelBevel FBevelInner;
TPanelBevel FBevelOuter;
TBevelWidth FBevelWidth;
TBorderWidth FBorderWidth;
TFormBorderStyle FBorderStyle;
bool FFullRepaint;
bool FLocked;
Classes::TNotifyEvent FOnResize;
TAlignment FAlignment;
MESSAGE void __fastcall CMTextChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMCtl3DChanged(Messages::TMessage &Message);
MESSAGE void __fastcall CMIsToolControl(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
void __fastcall SetAlignment(Classes::TAlignment Value);
void __fastcall SetBevelInner(TPanelBevel Value);
void __fastcall SetBevelOuter(TPanelBevel Value);
void __fastcall SetBevelWidth(TBevelWidth Value);
void __fastcall SetBorderWidth(TBorderWidth Value);
void __fastcall SetBorderStyle(Forms::TBorderStyle Value);
void __fastcall ReadData(Classes::TReader* Reader);
protected:
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
virtual void __fastcall AlignControls(Controls::TControl* AControl, Windows::TRect &Rect);
virtual void __fastcall Paint(void);
virtual void __fastcall Resize(void);
__property Classes::TAlignment Alignment = {re